﻿<%@ Page Language="c#" ContentType="text/html" ResponseEncoding="utf-8" Async="true" MasterPageFile="~/administration/list_private.master" Inherits="ACM.cmsarea08.Administration.Core.GesContenuti" %>

<asp:Content ID="PageBody" Runat="server" ContentPlaceHolderID="MasterBody">
<h1><img src="../template/admimg/content_big.jpg" alt="Content Manager" /><% Response.Write(rm.GetString("ges_articles")); %></h1>
<div class="content_filter">
<table>
	<tr class="language_filter">
    	<td><label  for="<%=mylanguages.ClientID%>" ><% Response.Write(rm.GetString("filter_by")+" "+rm.GetString("lang")); %></label></td>
    	<td><ctl:DropDownLanguages id="mylanguages" AllListItem="true" runat="server" /></td>
    </tr>
    <tr class="custom_filter">
		<td><label for="<%=myfilter.ClientID%>" ><% Response.Write(rm.GetString("filter_by_catsec")); %></label></td>
        <td><ctl:DropDownChooseContent id="myfilter" Layout="table" runat="server" /></td>
	</tr>
    <tr>
    	<td colspan="2"><asp:button id="reload_me" runat="server" Text="aggiorna"/></td>
    </tr>
</table>
</div>
<div style="clear:both;">
<asp:Label ID="msgstatic" runat="server"/>
    <ptl:Itan_DataGrid id="insContenuti" runat="Server" Title="gestione utenti" ShowTitle="true" autogeneratecolumns="false" ExtendedPager="true" PageNum="1" CurrentPage="1" SelectColumn="true" SelectColumnField="id" CheckingColumn="false" EOrdinabile="false" CssClass="DGridClass" >
<alternatingitemstyle BackColor="#e1e1e1"></alternatingitemstyle>
<columns>
<asp:BoundColumn DataField="id" Visible="false" ></asp:BoundColumn>
<asp:TemplateColumn>
    <headertemplate><%# rm.GetString("content_name") %></headertemplate>
    <itemtemplate>
            <%# (Eval("lockid")!=null && Eval("lockid").ToString()!="-1")?"<a class=\"jmscmd\"><img class=\"jmslock1_sm\" border=\"0\" src=\"../template/img/spacer.gif\" alt=\"" + rm.GetString("lockedby") +" "+ Eval("lockedby").ToString() + "\" title=\"" + rm.GetString("lockedby") +" "+ Eval("lockedby").ToString() + "\" /></a>":"" %>

             <%#  ( 
("<a title=\""+ (Eval("titolo").ToString()==""?rm.GetString("edit_content"):(rm.GetString("edit_content") + "(" + Eval("titolo") + ")")) +  "\" href=\"edit_contenuti.aspx?new=0&amp;idf=A"+ Eval("sez_id") + "~" + Eval("cat_id") + "~" + Eval("id") +
(currentFiltro!=string.Empty?("&amp;fil="+currentFiltro):("&amp;fil=" + Eval("sez_id") + "~" + Eval("cat_id")))+"\" >"+
Eval("titolo") +"</a>" + (Eval("tradotto_daNOME").ToString()==""?"":("<br/><span class=\"suggest\">" + rm.GetString("trans_of") + " <strong>" + Eval("tradotto_daNOME") + "</strong></span>")) )
) %>
        </itemtemplate>
    </asp:TemplateColumn>
<asp:TemplateColumn>
    <headertemplate><%# rm.GetString("seccat_text") %></headertemplate>
    <itemtemplate>
<%# HttpUtility.HtmlDecode(Eval("sec_title").ToString()) %> &gt;
<%# HttpUtility.HtmlDecode(Eval("cat_title").ToString()) %>            
        </itemtemplate>
    </asp:TemplateColumn>
<asp:TemplateColumn>
    <headertemplate><%# rm.GetString("author") %></headertemplate>
    <itemtemplate>
        <%# Eval("autore").ToString() %>
            <%# (Eval("autore").ToString()!=Eval("autore2").ToString())?"<br/><span>("+rm.GetString("edited_by")+" " + Eval("autore2").ToString()+")</span>":""%>
        </itemtemplate>
    </asp:TemplateColumn> 
<asp:TemplateColumn >
    <headertemplate><acronym title="<%# rm.GetString("enabled_disabled") %>">On/Off</acronym></headertemplate>
    <itemtemplate>
        <asp:LinkButton id="enable_me" CssClass="jmscmd" runat="server"></asp:LinkButton>
        </itemtemplate>
    </asp:TemplateColumn>
     <asp:TemplateColumn>
    <headertemplate><%# rm.GetString("lang") %></headertemplate>
    <itemtemplate>
        <%# Eval("lingua") %>
        </itemtemplate>
    </asp:TemplateColumn>    
<asp:TemplateColumn>
    <headertemplate><%# rm.GetString("last_edit") %></headertemplate>
    <itemtemplate>
        <%# Eval("data_mod") %>
        </itemtemplate>
    </asp:TemplateColumn>
    <asp:TemplateColumn>
    <headertemplate><%# rm.GetString("status") %></headertemplate>
    <itemtemplate>
        <% if(RevMode && !IsPublisher){ %>
<%# Eval("deleting").ToString()!="1"?"":rm.GetString("deleting") %>
            <% } else if(RevMode && IsPublisher){ %>
                    
                    <%# Eval("deleting").ToString()=="N"?((Eval("upd_id").ToString()!="-1")?rm.GetString("new_update") +"<br />":rm.GetString("new_item")+"<br />"):"" %>
                   
                    <%# Eval("deleting").ToString()!="1"?"":rm.GetString("deleting_alert") + "<br />" %>
            <% } %>
            <asp:LinkButton id="cancel_delete" runat="server"></asp:LinkButton>
            <% if(RevMode && IsPublisher){ %>
                <%# Eval("upd_id").ToString()=="-1"?"":"<br/>" + rm.GetString("update_of") + " <a href=\"edit_contenuti.aspx?new=0&amp;idf=A"+ Eval("sez_id")+ "~" + Eval("cat_id") + "~" + Eval("id") + "\" title=\"" + rm.GetString("edit_original") + "\">" + Eval("upd_name").ToString() + "</a><br /><a href=\"edit_contenuti.aspx?new=0&idf=A"+ Eval("sez_id")+ "~" + Eval("cat_id") + "~" + Eval("id") + "&amp;conf=1\" title=\"" + rm.GetString("publish") + "\">" + rm.GetString("publish") + "</a>" %>
            <% } %>
            <asp:LinkButton id="publish" runat="server"></asp:LinkButton>
        </itemtemplate>
    </asp:TemplateColumn>           
</columns>
</ptl:itan_datagrid>
</div>
</asp:content>